package com.ego.ware.vo;

import com.ego.common.constant.WareConstant;
import lombok.Getter;
import lombok.Setter;

/**
 * @program: ego
 * @description: 具体采购项VO——PurchaseDetailPo
 * @author: KamTang
 * @create: 2022-11-25 09:49
 **/
@Setter
@Getter
public class PurchaseItemFinishedVo {
    /**
     * 采购项ID
     */
    private Long itemId;
    /**
     * 当前采购单状态
     */
    private Integer status;
    /**
     * 采购失败原因
     */
    private String reason;

    public boolean hasError() {
        return this.status == WareConstant.PurchaseDetailStatusEnum.ERROR.getCode();
    }
}
